layui.use(['form', 'table', 'layer', 'layedit'], function (form, table, layer, layedit) {
    //富文本编辑器图片上传
    layedit.set({
        uploadImage: {
            url: '../upload/picture' //接口url
            , type: '' //默认post
        }
    });

    var notice = layedit.build('notice'); //建立富文本编辑器

    //得到富文本编辑器内容
    form.verify({
        mailContent: function (value) {
            return layedit.sync(notice);
        }
    });
});